package com.sticktogether.navigation;
/**
 * Line contains all information of a public transport line including the agency
 * 
 * Note:
 * Some code parts are commented because they are not needed and thus save computing time. 
 * They are not deleted, in case the information will be needed later.
 * 
 * @author 	David Schattel
 * @since 	01.12.2012
 */
public class Line {
	
	private String type_line		= "---";
	private String type_vehicle		= "---";
	private String agency_name		= "---";
	private String iconURL			= null;
	//private String name_line		= "Unknown line"; 
	//private String name_vehicle 	= "Unknown vehicle";
	private String local_iconURL 	= null;
	//private String color			= null;
	//private String textcolor		= null;
	//private String agency_URL		= null;
	//private String agency_phone		= null;
	
	
/**
 * Line Constructor
 * 
 * @param name_line		Name of the Line (important stops of the line)
 * @param type_line		Type/Name of the Line (e.g. Busnumber)
 * @param name_vehicle	Name of the vehicle
 * @param type_vehicle	Type of the vehicle
 * @param iconURL		URL of the line's icon
 * @param local_iconURL	URL of the line's locally used icon (if available)
 * @param color			corporal design color for the specific public transport
 * @param textcolor		corporal design textcolor for the specific public transport
 * @param agency_name	Name of the public transport agency owning the line
 * @param agency_URL	URL of the agency's website
 * @param agency_phone	Phone number of the agency
 */
	//public Line(String name_line, String type_line, String name_vehicle, String type_vehicle, String iconURL,	String local_iconURL, String color, String textcolor, String agency_name, String agency_URL,String agency_phone){
		//this.name_line = name_line;
		//this.name_vehicle = name_vehicle;
		//this.color = color;
		//this.textcolor = textcolor;
		//this.agency_URL = agency_URL; 
		//this.agency_phone = agency_phone; 
	public Line(String type_line, String type_vehicle, String iconURL, String local_iconURL, String agency_name){
		this.type_line = type_line;		
		this.type_vehicle = type_vehicle;
		this.iconURL = iconURL;
		this.local_iconURL = local_iconURL;
		this.agency_name = agency_name;
	}
	
	public String getLineType() {
		return type_line;
	}
	
	public String getVehicleType() {
		return type_vehicle;
	}
	
	public String getIconURL() {
		if(local_iconURL == null){
			return iconURL;
		}
		else{
			return local_iconURL;
		}
	}
	
	public String getAgency_name() {
		return agency_name;
	}
	
/*	public String getLineName() {
		return name_line;
	}

	public String getVehicleName() {
		return name_vehicle;
	}


	public String getColor() {
		return color;
	}

	public String getTextcolor() {
		return textcolor;
	}

	public String getAgency_URL() {
		return agency_URL;
	}


	public String getAgency_phone() {
		return agency_phone;
	}*/

}
